

if TUNING.NPC_CHAT_TABLE == nil then
    TUNING.NPC_CHAT_TABLE  = {}
end

local this_language = "en"
if TUNING.__NPC_LANGUAGE then
    if type(TUNING.__NPC_LANGUAGE) == "function" and TUNING.__NPC_LANGUAGE() ~= this_language then
        return
    elseif type(TUNING.__NPC_LANGUAGE) == "string" and TUNING.__NPC_LANGUAGE ~= this_language then
        return
    end
end

TUNING.NPC_CHAT_TABLE[this_language] = {
    ["npc_event_give_basic_supplies"] = {
        ["those_are_for_you"] = "These are for you ."
    },
    ["npc_event_ghost"] = {
        ["those_are_for_you"] = "These are for you .",
        ["time_out"] = "I'm off to find someone else ."
    },
    ["npc_event_thief"] = {
        ["hahaha"] = "A Ha Ha Ha ~",
        ["Announce_succeed"] = "This guy took your [ XXXXXXX ] , and then all the way \"ahahahahaha ~\" ran away .",
        ["Announce_failed"] = "This guy has taken your sanity , and then all the way \"ahahahahaha ~\" ran away .",
        ["box_name"] = "Trick-or-Treaters' Boxes",
        ["box_inspect"] = "It's full of things that have been taken away, except for sanity.",
    },
    ["npc_event_minifan"] = {
        ["let_us_play_minifan"] = "Let's play minifan together",
        ["hahaha"] = "Ha Ha Ha ~",
        ["happy"] = "I had a great time .",
        ["it_is_for_you"] = "This is for you",
        ["gift_name"] = "Best Friend Gift Box"
    },
    ["npc_event_freeze"] = {
        ["hahaha"] = "Ha Ha Ha ~"
    },
    ["npc_event_deal_with_bat"] = {
        ["it_is_for_you"] = "This is for you",
        ["too_late"]="It's too late, I have to go"
    },
    ["batbat_upgrade_boss"] = {
        ["worng_boss"] = {"Not this target", "you will regret"},
        ["announce"] = "  touches its favorite target, then kills the target and XXXX .",
        ["ask_for_target"] = {"I want to hit this","Take me to fight this","Please, take me to fight this","I only like this BOSS"},
    },
    ["hammer_upgrade_mole"] = {
        ["ask_for_target"] = {"I want to hit the moles","Use me to hit the moles","Please , take me to hit the moles"},
        ["worng_target"]    = {"Not this one !","This is not what I want","The mole is over there !"}
    },
    ["npc_event_meteor"] = {
        ["aaaaaaaaaa"]    = {"Ah ah ah ah ah ~","Run !","Don't stop !"},
        ["no_no_no"] = {"Don't follow me !","What did you do ? !","Ah ah ah ah ah ~","Don't follow me ! ! !","Stay away from me ! ! !"},
    },
    ["npc_event_ask_for_razor"] = {
        ["razor_say"] = {"It's horrible","Don't make me do that next time","I never thought it would be like that"},
        ["announce"] = "You don't want to know where on his body he just shaved with a razor .",
        ["too_late"] = "I'm off to find someone else"
    },
    ["npc_event_bushhat"] = {
        ["those_are_for_you"] = "These are for you",
        ["too_late"] = "It's too late , I'm leaving",
    },
    ["npc_item_tree_trade_station"] = {
        ["Production_Column_name"] = "Crow caravanserai roosting tree",        ----- 制造栏里的名字
        ["Production_Column_desc"] = "A rest stop for raven caravans, where new caravans come every day for temporary stationing .",   --- 制造栏里的内容
        ["tree_name"] = "Crow caravanserai roosting tree",
        ["inspect_str"] = "A rest stop for raven caravans, where new caravans come every day for temporary stationing .",
        ["kit_inspect_str"] = "Create a crow caravan rest stop",
        ["announce"] = "You finally got enough to buy a raven caravan station, it's not easy, right ?",
    },
    ["npc_event_fishbowl"] = {
        ["event_announce"]  = "A small fish bowl fell from the sky with a cute little fish inside .",
        ["inspect_str"] = "A very cute little fish , eager for fine human cuisine .",
        ["ask_for_food"] = {
            "I like human cooking the most","The food cooked is so delicious","Give me more food !","I'm hungry , but I'm a picky eater","Cuisine, cuisine, cuisine, cuisine !","I want more food","Can you cook more dishes for me ?"
        },
        ["shark_announce"] = "Ha ha, feed too much, right?",
        ["fishbowl_for_food"] = {"Aha! Smart decision , how did you know you could make them kill each other ?","Aha, extremely clever decision , the snipe and the fishermen will benefit .","Interesting decision , are you sure you didn't go through the source code ?"}
    },
    ["npc_event_maxwell_and_shadow"] = {
        ["time_out"] = "You're a good runner",
        ["hahaha"] = "Ah ha ha ha ha ~",
        ["kill_announce"] = " died from a special shadow magic",
    },
    ["npc_event_livingtrees"] = {
        ["time_out"] = "You're a good runner",
        ["hahaha"] = "Ah ha ha ha ha ~",
        ["tree_name"] = "The Tree of Confinement",
        ["tree_root_name"] = "The Root of the Confinement Tree"
    },
    ["npc_event_trident"] = {
        ["found_trident"] = "I got a special trident",
    },
    ["npc_event_telestaff"] = {
        ["found_things"] = "I found something , let me take you there",
    },
    ["npc_event_clockwork_guard"] = {
        ["tree_name"] = "Clockwork Guard Station",
        ["inspect_str"] = "This is a clockwork guard station to defend the nearby area from monster invasion .",
        ["kit_inspect_str"] = "Set up a clockwork guard station to defend the area from monsters .",
        ["event_announce"] = "A special camp guard fell from the sky, now you can protect the safety of your camp .",
    },
    ["npc_event_wolfgang_and_horn"] = {
        ["time_out"] = "I have to go now ~",
        ["warm_up_exercise"] = "Let's have a warm-up exercise",
    },
    ["npc_event_butterflies"] = {
        ["time_out"] = "I have to go now ~",
        ["bugnet"] = "Let's catch butterflies",
    },
    ["npc_event_catch_game"] = {
        ["catch_game_gift_box_name"] = "Skyfall gift box",
        ["inspect_str"] = "It is best to find an open space and then open",
        ["kill_announce"]   = "Oh ~ ~ so unlucky to be killed by the object .",
        ["event_announce"] = "A special gift box falls from the sky, and you'd better find an open space to open it with your friends ."
    },
    ["npc_event_pigman_arena"] = {
        ["coin_name"] = "Pigman arena opening coin",
        ["inspect_str"] = "It is best to find an open space and then open",
        ["spell_failed"] = "You need more open space to get started .",
        ["success"] = "Congratulations to the adventurers, passed the arena",
        ["success_half"]   = "It's a pity that the adventurers failed midway. But they can still be revived by looking for the [ Amulet ] in the venue .",
        ["failure"] = "I can't believe you didn't pass any of them ! Did you start the challenge without being prepared ?",
        ["announce"]  = "An emissary sent by the otherworldly king of pigs appears beside you and provokes you ."
    },
    ["npc_event_treasure_map"] = {
        ["map_name"] = "Treasure Map",
        ["inspect_str"] = "Treasure?  Or a trap ?",
        ["box_name"] = "Strange Box",
        ["inspect_str_box"] = "Treasure ? Or is it a trap ? Better be careful opening it .",
        ["monster"] = "t's a trap ! ! ! I hope you can escape this disaster .",
        ["event_announce"] = "A treasure map fell from the sky .",
        ["first_open_announce"] = "You'd better take the map with you to find the treasure"

    },
    ["npc_event_trick_or_treat_from_wortox"] = {
        ["hahaha"] = "Ha Ha Ha Ha Ha ~"
    },

    ["npc_event_gift_from_wanda"] = {
        ["pocketwatch_name"] = "Scurrying clocks",
        ["inspect_str"] = "Wanda's sprint clock, the faster you go, the easier it is to get hungry",
        ["this_is_for_you"] = "This one is for you, save running time",
    },

    ["npc_event_gift_from_walrus"] ={
        ["it_is_for_you"] = "This is for you",
    },
    ["npc_event_wurt_hiding_box"] ={
        ["box_name"] = "Suspicious Box",
        ["inspect_str_box"] = "The box is suspicious.",
        ["say"] = {"Scared the hell out of me","I'm in a box dodging monsters","This world is too dangerous"},
        ["those_are_for_you"] = "These are for you"
    },
    ["npc_event_wortox_from_portal"] = {
        ["wilson"] = {"This is back to you","It should still work"},
        ["other"] = {"I took this from Wilson","And now for you"},
    },
    ["npc_event_trick_or_treat_from_wilton"] = {
        ["hahaha"] = "Aa Aa Aa Aa Aa Aa Aa Aa",
        ["player_say"] = "? ? ? ? ? ? ? ? ? ? ? ?"
    },
    ---------------------------------------------------------------------------------------
    ------ 定制物品 或 物品升级类

    ["nightsword_upgrade"] = {
        ["name_blood"] = "Bloody Shadow",
    },
    ["flowerhat_upgrade"] = {
        ["name_flower_step"] = "Wormwood's Blessing Wreath",
    },
    ["cane_upgrade"] = {
        ["name_fireflies"] = "Fireflies Cane",
        ["name_erode"] = "Erode Cane",
    },
    ["npc_item_magic_tophat"] = {
        ["name"] = "Special Magic Top Hat",
        ["inspect_str"] = "With this, everyone can be a magician",
        ["action_str"] = "Open",
        ["announce"] = "It's hard to come up with the money, isn't it ?",
        ["recipe_desc"] = "The hat is expensive, but has plenty of internal capacity ."
    },
    ["npc_item_walrus_camp"] = {
        ["name"] = "The walrus' magic house",
        ["inspect_str"] = "The walrus house with magic",
        ["recipe_desc"] = "The walrus house with ice magic, can keep food fresh forever"
    },
    ["npc_item_red_portal"] = {
        ["name"] = "Demon Portal",
        ["inspect_str"] = "This portal is sucking the souls around it, and there should be many demons inside",
    },
    ["npc_item_wortox_hambat"] = {
        ["name"] = "Strange-tasting ham sticks",
        ["inspect_str"] = "It feels like Wortox is still playing tricks on me",
        ["go_worng"] = "This ham is not quite right",
        ["announce"] = "Something really wasn't right with this ham",
    },
    ["npc_item_dining_table"] = {
        ["name"] = "Dining Table Order Kit",
        ["inspect_str"] = "Table ready for serving",
        ["button_text"] = "Serve",
    },
    ["npc_item_goldnugget_coin"] = {
        ["name"] = "Special Magic Gold Coin",
        ["inspect_str"] = "With a bit of magic , Can be used to trade or exchange with merchant",
    },
    ["npc_item_woodlegs_cage"] = {
        ["name"] = "Cage",
        ["inspect_str"] = "Inside is locked up ..... A pirate ?",
        ["say"] = {"Please, let me out","Help !","I won't do that anymore","Help me","The keys are on the bosses"},
        ["key1"] = "Bone Key",
        ["key2"] = "Gold Key",
        ["key3"] = "Iron Key",
        ["key_inspect_str"] = " , to open the cage underground",
        ["key_inspect_str_no_use"] = " , already useless , take to the recycling should be very valuable",
        ["unlock_say"] = "It's finally out, thank you !"
    },
    ["npc_item_woodlegs_tent"] = {
        ["name"] = "The Old Pirate's Tent",
        ["inspect_str"] = "Why was he put in a cage before ?",
        ["inspect_str_item"] = "Is it safe to be with this guy ?",
        ["button_text"] = "Replenish",
        ["Waiting.onpickup"] = "I'll come back some time later",
        ["Waiting.player"] = {"Can I come to your camp ?","I want to find a companion","I think we can be stationed together"},
        ["Waiting.attacked"] = {"If beating me is very demoralizing , feel free to do so","It feels good to hit me, right ?","I was put in the cage because I was too resistant to beatings"},
        ["Waiting.attacked.2"] = {"Oh my God","I was in the wrong","Don't put me in a cage again"},
        ["Waiting.inspect"] = "This guy seems to have no other merits except his resistance to beatings",
        ["Waiting.attacke_name"] = "Fight-resistant Woodlegs",
        ["Waiting.attacke_name.2"] = "Unbeatable Woodlegs",
        ["Waiting.start_travel"] = {"Go !","Depart ! ! !","The sea is calling me !"},
        ["box.name"] = "Trophies from the sea",
        ["box.inspect"] = "What's inside ?",
        ["box.announce"]    = "Woodlegs returns with his sailing trophies",
        ["Instructions"] = "This tent can only be placed near the portal or camp, if inadvertently lost, Woodlegs will be waiting for you again at the Portal that."

    },
    ["npc_item_no_discounts_amulet"] = {
        ["name"] = "No Discount Necklace",
        ["inspect_str"] = "Wearing this will throw off the discount for building production",
        ["recipe_desc"] = "Please take off the green amulet\nor please try wearing this necklace"
    },
    ["npc_item_transform_compass"] = {
        ["name"] = "Disposable Transfer Compass",
        ["inspect_str"] = "Teleport to the nearest Florid Postern, for emergency teleportation.Can also be used for rescue",
    },
    ["npc_item_risk_taker_tent"] = {
        ["name"] = "Tents of people in risk",
        ["inspect_str"] = "Fortunately there is this, or more likely to die",
        ["announce"] = {"A voice calling for help came from deep in the cave","Screams from deep in the cave, someone needs to be rescued"},
        ["thanks"] = "Finally someone came to my rescue",
        ["it_is_for_you"] = "This is for you",
        ["wisper"] = "The poor guy needs a magic compass , which is sold at the merchant .",

    },

    ["npc_item_cards_station"] = {
        ["name"] = "Walrus Card Store",
        ["inspect_str"] = "Walrus Card Store , You can try your luck",
        ["recipe_desc"] = "You can try your luck",

        ["npc_card_spring"] = "Spring is here, watch out for rain .",
        ["npc_card_summer"] = "Summer is here and it's hot everywhere .",
        ["npc_card_autumn"] = "Autumn is here and there is a ripe atmosphere .",
        ["npc_card_winter"] = "Winter is here, are you ready to fight the cold ?",
        ["npc_card_meteorite"] = "Now you know why someone was chased by meteorites .",
        ["npc_card_reaper"] = " was unlucky enough to draw the Reaper card and was reaped by Reaper.",
        ["npc_card_teleportation.ocean"] = "XXXX was unlucky enough to get a teleportation card and even unluckier to be teleported to the ocean .",
        ["npc_card_lightning"] = "May you have measures to avoid lightning",
        ["npc_card_bottle_with_coin"] = "It's best to have a bottle in your hand that is the same as the one your opponent is holding",
    },
    ["npc_item_rainbow_horn"] = {
        ["name"] = "Toy-Rainbow Horn",
        ["inspect_str"] = "Blow the horn, the rainbow appears",
        ["recipe_desc"] = "Blow the horn and the rainbow will be available to all the people attached .It can also be used to revive yourself or others",
    },

    ["npc_item_frozen_npc"] = {
        ["inspect_str"] = "Unlucky guy, need some help from others",
        ["name"] = "Frozen ",
        ["Say"] ={"Finally out of the ice","Thanks","These are for you"},
    },
    ["npc_item_bottle_with_coin"] = {
        ["name"] = "Bottle With Coins",
        ["inspect_str"] = "The bottle is particularly strong, the bottom says: the bottle knock the other bottle to open",
    },
    ["npc_item_cards_experience_pack"] = {
        ["name"] = "The Experience Cards",
        ["inspect_str"] = "You'd better be well prepared before using",
    },
    ---------------------------------------------------------------------------------------
    ----------- 贸易集群事件文本    
    ["npc_event_item_buyer"] = {
        ["action_str_table"] = {REFUSED= "Unable to tag this",NODATA = "No data",NON_SALE_ITEM = "No one will want this.",SELLING = "Already tagged for sale"},
        ["action_str"] = "Sell this",
        ["inspect_str"] = "Insert a sign to indicate that this item is for sale",
        ["announce"] = {"A buyer has taken a look at something you have tagged for sale .","One buyer came with a reputation .","You have a new buyer appearing, please note the reception ."},
        ["Instructions"] = "Now you just need to wait for the buyer to arrive to buy this .",


        ["pigman_name"] = "Otherworldly intermediary trader",
        ["inspect_str_pigman"] = "The rare intermediary merchant in the Eternal Realm who knows how to trade with adventurers from other worlds",
        ["first_gift"] = "Ah ~ Adventurer, I have a gift for you here.",
        ["filter_text"] = "Intermediary Shop",
        ["gift_pack.name"] = "A gift from the other world",
        ["gift_pack.inspect_str"] = "Open it",

        ["cart_name"]   = "Recycling cart",
        ["cart_inspect_str"] = "The cart used by the merchant for recycling materials",
        ["recycle_exchange"] = "This is the price of recycling conversion",
        ["recycle_exchange_announce"] = "The recycled materials have been settled . Please go to the merchant's shop to receive your settlement payment .",


        ["chesspiece"] = {"This statue is very beautiful, I like it very much","I like this statue you made","The statue is so magnificent, I bought it","I need a statue like this"},
        ["name_chesspiece"] = "Statue for sale sign",
        ["recipe_desc_chesspiece"] = "Tagging statues to be sold",

        ["glass"]   = {"This glass statue is so exquisite","I've been looking for this for a long time"},
        ["name_glass"] = "Glass statue for sale sign",
        ["recipe_desc_glass"] = "Tag the glass statue for sale",
        
        ["veggie"] = {"I've been drooling over this crop for a long time","This big enough for me to eat for a number of days","I can't grow such a big crop no matter how hard I try"},
        ["name_veggie"] = "Giant crop for sale sign",
        ["recipe_desc_veggie"] = "Tagging huge crops to be sold",

        ["house"] = {"I think this house is perfect for me","It's a beautiful house","I'll buy this house"},
        ["name_house"] = "House for sale sign",
        ["recipe_desc_house"] = "Tagging pig or rabbit or walrus houses to be sold .not non-player made houses",

        ["sunkenchest"] = {"I'll take this treasure chest","I really like to open the treasure chest"},
        ["name_sunkenchest"] = "Sunken treasure chest for sale sign",
        ["recipe_desc_sunkenchest"] = "Mark the sunken treasure chests to be sold, there are always people who especially like to open them.",

        ["shell_cluster"] = {"These shells I like very much","I've been looking for these for a long time"},
        ["name_shell_cluster"] = "Shell pile for sale sign",
        ["recipe_desc_shell_cluster"] = "Tagging shell piles to be sold",

        ["birdcage"] = {"This bird cage I like","I wish there was a little bird inside"},
        ["name_birdcage"] = "Birdcage for sale sign",
        ["recipe_desc_birdcage"] = "Tagging the bird cage to be sold, preferably with a small bird inside to sell together",
        ["birdcage_reset_chat"] = {"This little bird I especially like","This little bird is smart and clever, I like it","The bird's feathers are beautiful"},

        ["name_lucky_goldnugget_exchange"] = "Lucky Goldnugget is exchanged for Goldnugget",
        ["recipe_desc_lucky_goldnugget_exchange"] = "Lucky Goldnugget 1:1 conversion to Goldnugget",

        ["dining_table"] = {"I've been waiting for this meal for a long time","Someone finally made this great meal","Did you add extra seasoning?","I've been waiting for this sumptuous meal"},
        ["name_dining_table"] = "Dining Table Order Kit",
        ["recipe_desc_dining_table"] = "Food order kits, and customers should be happier if the food is spiced up.",

        ["name_goldnugget_coin"] = "Special Magic Gold Coin exchange",
        ["recipe_desc_goldnugget_coin"] = "Gold nuggets converted into Special Magic Gold Coins",
        ["name_goldnugget_coin_exchange"] = "SSpecial Magic Gold Coins exchanged for gold nuggets",
        ["recipe_desc_goldnugget_coin_exchange"] = "There is a slight handling fee",
    },
    ---------------------------------------------------------------------------------------
}